package com.example.myapplication;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class MainActivity_detail extends AppCompatActivity {
    ImageView imageView;
    TextView textView1,textView2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_detail);
        imageView=findViewById(R.id.imageView_detail);
        textView1=findViewById(R.id.textView_deatil1);
        textView2=findViewById(R.id.textView_detail2);

        imageView.setImageResource(getIntent().getIntExtra("avatar",-1));
        textView1.setText("姓名："+getIntent().getStringExtra("name"));
        textView2.setText("性别:"+getIntent().getStringExtra("sex"));
    }
}